package com.linzm.behavioraltype.command02;

/**
 * @Author zimingl
 * @Date 2023/4/16 2:50
 * @Description: 股票
 */
public class Stock {
    private String name = "ABC";
    private int quantity = 10;

    public void buy() {
        System.out.println("Stock [ Name: " + name + ", Quantity:" + quantity + " ] bought ");
    }

    public void sell() {
        System.out.println("Stock [ Name: " + name + ", Quantity:" + quantity + " ] sold ");
    }
}
